home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97b.txt / 000129_icon-group-sender _Mon Dec 1 09:25:31 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.7/8.8.7) with SMTP id JAA06576
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 1 Dec 1997 09:25:30 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA00728; Mon, 1 Dec 1997 09:25:30 -0700
  7. Date: Tue, 25 Nov 1997 19:56:01 -0600
  8. Message-Id: <199711260156.TAA13665@segfault.cs.utsa.edu>
  9. From: Clinton Jeffery <jeffery@segfault.cs.utsa.edu>
  10. To: kshaw@plight.lbin.com
  11. Cc: icon-group@optima.CS.Arizona.EDU
  12. In-Reply-To: <52oh38lhwo.fsf@plight.lbin.com> (message from kendall shaw on 25
  13.     Nov 1997 14:37:11 -0800)
  14. Subject: Re: wicont and stdin
  15. Reply-To: jeffery@cs.utsa.edu
  16. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  17. Status: RO
  18.  
  19.  
  20. >   I downloaded windows icon and proceeded to try out a program which
  21. >   processes stdin. I haven't figure out how to do this though, because
  22. >   when I use read() it pops up a window to read from the keyboard, rather
  23. >   than reading from stdin. So, I can't pipe files into it. Is there a
  24. >   way around this?
  25.  
  26. You want to pipe, you gotta use a real operating system, like UNIX.
  27.  
  28. Under NT and Win95, you can use the NT "console" binaries available
  29. at ftp://ringer.cs.utsa.edu/pub/icon/nt/console which don't pop up
  30. a window, don't have graphics, and don't run under Windows 3.1.
  31.  
  32. If you need graphics, realize that Win32 doesn't let graphics applications
  33. read stdio: they have no standard input.  If Windows Icon sees a "<" or ">"
  34. as a command-line argument, it performs file redirection for you, but code
  35. to support this had to be added in by hand, and the behavior of redirection
  36. was inconsistent across Windows platforms.
  37.  
  38. By the way, the next release of Windows Icon will include the console mode
  39. binaries and the graphics binaries in a single distribution, and include a
  40. standard Windows installation program, which should simplify the task of
  41. obtaining the software and running programs.
  42.  
  43. Clint Jeffery, jeffery@cs.utsa.edu
  44. Division of Computer Science, The University of Texas at San Antonio
  45. Research http://www.cs.utsa.edu/research/plss.html
  46.